/*
* $Id: PointsTable.h 2 2009-12-23 13:58:02Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _POINTS_TABLE_H_
#define _POINTS_TABLE_H_

#include "../Table.h"
#include "../Operation.h"

class CPointsTable : public CTable, public CFillContent
{
public:
	CPointsTable();
	virtual ~CPointsTable();
public:
	struct content : public CTable::content{
		std::tstring s_strName;
		int s_nIdRecord;
		std::tstring s_strNote;
		content();
		virtual void Clear();
		virtual void Set(const std::vector<CTableItem>& aContent);
		virtual void Free();
	}m_content;
public:
	virtual void CreateTable(IDatabase* pDatabase);
	virtual void UpdateValue(IDatabase* pDatabase);
	virtual IResult* GetValue(IDatabase* pDatabase);
	virtual void SetValue(IDatabase* pDatabase);
	virtual void DeleteValue(IDatabase* pDatabase);
	virtual IOperation::i_content* CreateContent();
};

#endif/*_POINTS_TABLE_H_*/